package com.four.marketing.dao;

import com.four.marketing.entity.Collage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.four.marketing.vo.CollageVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 侯新伟
 * @since 2021-12-14
 */
public interface CollageDao extends BaseMapper<Collage> {

    List<Collage> collageList(@Param("vo") CollageVo vo);

    void addCollage(@Param("co") Collage collage);

    /**
     * 根据id查询拼团商品
     * @param id
     * @return
     */
    Collage selectCollageById(@Param("id") Integer id);

    /**
     * 修改拼团商品的状态
     * @param sts
     */
    void updateCollageStatus(@Param("id") Integer id,@Param("sts") int sts);

    /**
     * 修改拼团商品
     * @param collage
     */
    void updateCollage(@Param("coll") Collage collage);
}
